<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="/page/common/public.jspf"%>
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css"
	href="${path }/css/index.css?v=${v}" />
<script type="text/javascript"
	src="${path }/js/jquery1.10.2.min.js?v=${v}"></script>
<script src="${path }/js/common/helper.js?v=${v}"></script>
<script src="${path }/js/common/cookie.js?v=${v}"></script>
<script type="text/javascript">
function nextUpgrade(){
	var type=$('#userType').val();
	var password=$('#password').val();
	var regionalType=$('#regionalType').val();
	if(type==null || type==''){
		alert('请选择申请类型');
		return;
	}
	if(regionalType==null || regionalType==''){
		alert('请选择地区');
		return;
	}
	if(password==null || password==''){
		alert('密码不能为空!');
		return;
	}
	if(password.indexOf(' ')>-1){
		alert('密码不能有空格!');
		return;
	}
	if(password.length<6){
		alert('密码必须在6~16位之间!');
		return;
	}
	$.ajax({
		type:'POST',
		url:Helper.basePath+'/memberCenter/nextUpgrade.htm',
		data:{
			'userType':type,
			'password':password,
			'regionalType':regionalType
		},
		async:false,
		success:function(jsonData){
			if(jsonData.message=='1'){
				alert('密码输入不正确，请重新输入!');
				return;
			}else{
				window.location.href=Helper.basePath+'/memberCenter/lastUpgrate.htm';
			}
			
		}
		
	});
	
}


</script>
<title>账户升级-魔环理财</title>
</head>

<body>
	<c:import url="../../include/top.jsp"></c:import>


	<div class="p_user_upgrade">
		<link href="${path }/css/mh/user_register.css?v=${v}"	rel="stylesheet">
		<link href="${path }/css/mh/user_charge.css?v=${v}" rel="stylesheet">
		<link rel="stylesheet" type="text/css" href="${path }/css/mh/weebox.css?v=${v}">
		<link rel="stylesheet" type="text/css" href="${skin }/upgrade.css?v=${v}">
<style type="text/css">
.ui-form .er-icon, .ui-form .error-wrap {display: none;}

</style>

		<span class="blank23"></span>
		<div class="wrap clearfix">
			<div class="ui-box">
				<div class="h-title">
					<h2>
						<i></i>账户升级
					</h2>
				</div>
				<div class="reg-mid">
					<div class="reg-title first-tep"></div>
					<div class="ui-form">
						
							<ul class="clearfix">
								<li class="tel-ver clearfix"><label> 升级类型</label> 
								<select id="userType" style="padding:3px;margin-top:3px;font-size: 16px;width: 290px;">
									<option value="" selected="selected">请选择</option>
									<option value="PARTEMPLOYEE">兼职用户</option>
									<option value="PARTNER">合作商户</option>
									<option value="EMPLOYEE">员工用户</option>
								</select>
									
								</li>
								<li class="tel-ver clearfix"><label> 地区选择</label> 
								<select id="regionalType" style="padding:3px;margin-top:3px;font-size: 16px;width: 290px;">
									<option value="" selected="selected">请选择</option>
									<option value="SH">上海</option>
									<option value="SZ">深圳</option>
									<option value="GZ">广州</option>
									<option value="HZ">杭州</option>
									<option value="BJ">北京</option>
								</select>
									
								</li>
								<li class="pwd-item" id="pwd-item"><label> 输入密码 </label> <span>
										<input type="password" value=""
										data-con="require" placeholder="5-25位数字／字母" name="password" id="password" class="txt int_placeholder"
										data-placeholder="5-25位数字／字母" autocomplete="off" maxlength="16">
								</span>
								</li>
								<%-- <li class="graph-ver clearfix"><label> 图形验证 </label> <input
									type="text" value="" data-con="require" placeholder="右侧数字"
									name="checkcode" id="checkcode" class="txt int_placeholder"
									data-placeholder="右侧数字">
									<div class="img-Veri" style="border: 0px;">
										<img id="checkcode_img" src="${path }/page/common/vcode.jsp">
									</div>
									<div class="refresh">
										<a href="javascript:void(0);"
											onclick="javascript:RegisterCheckcode('checkcode_img');">换一张</a>
									</div>
									<div class="er-icon">
										<i class="form-sprite icon-right"></i><span></span>
									</div>
									<div class="error-wrap">
										<div class="form-sprite e-arrow"></div>
										<div class="ew-icon">
											<i class="form-sprite icon-wrong"></i>
										</div>
										<div class="e-text"></div>
									</div></li> --%>
							</ul>
							<div class="btn-w30">
								<a class="common-sprite btn-red-h46" style="text-decoration:none;cursor: pointer;" onclick="nextUpgrade()">下一步</a>
							</div>
							<div class="p2p-ui-checkbox pad_left">
								<!-- <div class="fl">
									<input type="checkbox" name="isagree"
										class="common-sprite check-normal check-select"></input> <span>我已阅读并同意<a
										href="/register_terms.html" class="blue" target="_blank">《注册协议》</a></span>
								</div> -->
								<div class="error-wrap" id="agreement_msg">
									<div class="form-sprite e-arrow"></div>
									<div class="ew-icon">
										<i class="form-sprite icon-wrong"></i>
									</div>
									<!-- <div class="e-text">不同意注册协议无法完成注册</div> -->
								</div>
								<input data-con="require" type="hidden" name="agreement"
									value="1" id="agree"> <i></i>
							</div>
					</div>
				</div>
			</div>
		</div>
		<span class="blank23"></span>
	</div>
	<!--foot-->
	<c:import url="../../include/foot.jsp"></c:import>
	<!--foot-->

</body>
</html>